extends TextureRect

var speaker = null
var active = true
var emote = ""

func _ready():
	pass # Replace with function body.

func set_speaker(s, a, e=""):
	speaker = s
	emote = e
	self.texture = speaker.portrait(e)
	if active:
		self.modulate = Color(0.4, 0.4, 0.4, 0.8)
	else: 
		self.modulate = Color(1.0, 1.0, 1.0, 1.0)
